"""Initial migration

Revision ID: f9f7103b7c92
Revises: 0d4acfcf4fb1
Create Date: 2025-04-30 17:02:55.510991

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = 'f9f7103b7c92'
down_revision: Union[str, None] = '0d4acfcf4fb1'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('conversation_log', sa.Column('keyword', sa.String(length=50), nullable=True))
    op.add_column('conversation_log', sa.Column('is_builtin', sa.SmallInteger(), nullable=True))
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('conversation_log', 'is_builtin')
    op.drop_column('conversation_log', 'keyword')
    # ### end Alembic commands ###
